﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CH.Easy.Log
{
    public static class Loger
    {
        static ILog l;
        static Loger()
        {
            l = new TxtLog();
        }



        public static bool LogIsNullOrEmpty(object obj)
        {
            return l.LogIsNullOrEmpty(obj);
        }

        public static bool LogIsNullOrEmpty(object obj, string msg)
        {
            return l.LogIsNullOrEmpty(obj, msg);
        }

        public static bool LogIsEquals(object a, object b)
        {
            return l.LogIsEquals(a, b);
        }

        public static bool LogIsEquals(object a, object b, string msg)
        {
            return l.LogIsEquals(a, b, msg);
        }

        public static void Log(Exception e, params object[] param)
        {
            l.Log(e, param);
        }

        public static void Log(Exception e, string uid, params object[] param)
        {
            l.Log(e, uid, param);
        }

        public static void Log(Exception e, string uid, string name, params object[] param)
        {
            l.Log(e, uid, name, param);
        }

        public static void Log(string msg)
        {
            l.Log(msg);
        }

        public static void Log(string msg, LogType type, params object[] param)
        {
            l.Log(msg, type, param);
        }

        public static void Log(string msg, LogType type, string uid, params object[] param)
        {
            l.Log(msg, type, uid, param);
        }

        public static void Log(string msg, LogType type, string uid, string name, params object[] param)
        {
            l.Log(msg, type, uid, name, param);
        }

        public static void Log(string msg, int type, params object[] param)
        {
            l.Log(msg, type, param);
        }

        public static void Log(string msg, int type, string uid, params object[] param)
        {
            l.Log(msg, type, uid, param);
        }

        public static void Log(string msg, int type, string uid, string name, params object[] param)
        {
            l.Log(msg, type, uid, name, param);
        }
    }
}
